package cn.com.connext.scrm.service.mapper;


import cn.com.connext.scrm.domain.master.TmpMsgRecord;
import cn.com.connext.scrm.service.dto.JsonResult;
import cn.com.connext.scrm.web.rest.vm.TempSubScribeVm;

import java.util.List;

public interface TmpMsgRecordService {

    void add(TmpMsgRecord record);

    List<TmpMsgRecord> findNoSendExpire();

    void batchAdd(List<TmpMsgRecord> list);

    JsonResult sendTemplateMsg(TempSubScribeVm vm);

    JsonResult sendExpireTimeMsg();

    JsonResult sendCouponTemplateMsg(TempSubScribeVm tsm);

    TmpMsgRecord findById(Integer id);

    JsonResult getScheme();

    /**
     * 新消息提醒
     * @return
     */
    JsonResult sendNewExpireTimeMsg();
}
